using UnityEngine;
using UnityEditor;
using System.IO;

public class AssetBundleEditor : MonoBehaviour
{
    [MenuItem("Assets/Build All AssetBundles")]
    static void BuildAllAssetBundles(){
        
        string assetBundleDirectory = "./AssetBundles/win64";
        if(!Directory.Exists(assetBundleDirectory)){
            Directory.CreateDirectory(assetBundleDirectory);
        }
        BuildPipeline.BuildAssetBundles(
            assetBundleDirectory, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64
        );
    }
}
